package com.rxnetwork.sample.mvp

open class BasePresenterImpl<V : BaseView> : BasePresenter<V> {
    protected var mView: V? = null

    override fun attachView(view: V) {
        mView = view
    }

    override fun detachView() {
        mView = null
    }

    override fun showLoading() {
        if (mView != null)
            mView!!.baseShowLoading()
    }

    override fun hideLoading() {
        if (mView != null)
            mView!!.baseHideLoading()
    }

}
